package javalearn;

interface Actor {
    public abstract void act();
}

public class Teacher extends People {
    @Override
    public void sleep() {
        System.out.println("Teacher sleep in home");
    }

    @Override
    public void work() {
        Actor act = new Actor() {
            public void act() {
                System.out.println("Teacher work");
            }
        };
        act.act();
    }
}
